import request from '@/utils/request'

export function record(pageNum) {
	return request({
		url: '/system/query/recently?pageNum=' + pageNum,
		method: 'get'
	})
}

export function state(id) {
	return request({
		url: '/system/pay/state?id='+id,
		method: 'get'
	})
}

export function stateByOrderNo(id) {
	return request({
		url: '/system/pay/stateByOrderNo?orderNo='+id,
		method: 'get'
	})
}

// 1. 查询进件
export function addQuery(data) {
	return request({
		url: '/system/query/add',
		method: 'post',
		data: data
	})
}

// 2. 获取查询订单支付参数
export function promotionParam(id) {
	return request({
		url: '/system/pay/promotionParam?id=' + id,
		method: 'get'
	})
}

// 3. 对查询订单发起支付
export function queryPay(query) {
	return request({
		url: '/system/pay/queryPay',
		method: 'get',
		data: query
	})
}

//  4. 发起查询支付
export function addQueryPay(data) {
	return request({
		url: '/system/pay/addQueryPay',
		method: 'post',
		data: data
	})
}

//  5. 发起查询支付
export function productQuery(query) {
	return request({
		url: '/system/query/product',
		method: 'get',
		data: query
	})
}

export function listQuery(query) {
	return request({
		url: '/system/query/recordList',
		method: 'get',
		params: query
	})
}

export function getInfo(id) {
	return request({
		url: '/system/query/' + id,
		method: 'get'
	})
}

// 企业进件
export function taxesAuthUrl(query) {
	return request({
		url: '/system/query/taxesAuthUrl',
		method: 'get',
		params: query
	})
}

export function taxesStatus(id) {
	return request({
		url: '/system/query/taxesStatus/'+ id,
		method: 'get'
	})
}

export function taxesResult(orderNo) {
	return request({
		url: '/system/query/taxesResult/'+orderNo,
		method: 'get'
	})
}

export function query(orderNo) {
	return request({
		url: '/system/query/data?orderNo='+orderNo,
		method: 'get'
	})
}

export function refreshiMmovab(orderNo) {
	return request({
		url: '/system/query/immData?orderNo=' + orderNo,
		method: 'get'
	})
}

export function authFace(orderNo) {
	return request({
		url: '/system/query/authFace/'+ orderNo,
		method: 'get'
	})
}
// 验证码验证
export function checkVerifyCode(query) {
	return request({
		url: '/checkVerifyCode',
		method: 'get',
		params: query
	})
}

// 验证查询
export function recordListByMobile(query) {
	return request({
		url: '/system/query/recordListByMobile',
		method: 'get',
		params: query
	})
}

export function statistic(productId) {
	return request({
		url: '/pay/statistic/' + productId,
		method: 'get'
	})
}

export function concealKeyword(orderNo) {
	return request({
		url: '/system/query/concealKeyword/' + orderNo,
		method: 'get'
	})
}


